package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_good_attr_value")
@ApiModel(value="ShopGoodAttrValueEntity对象", description="")
public class ShopGoodAttrValueEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "商品id")
    @ApiModelProperty(value = "商品id")
    private Long goodId;

    @Column(comment = "商品规格值组合")
    @ApiModelProperty(value = "商品规格值组合")
    private String sku;

    @Column(comment = "sku价格")
    @ApiModelProperty(value = "sku价格")
    private Double price;

    @Column(comment = "sku主图片")
    @ApiModelProperty(value = "sku主图片")
    private String pic;

    @Column(comment = "销量")
    @ApiModelProperty(value = "销量")
    private Integer sales;

    @Column(comment = "积分价值")
    @ApiModelProperty("积分价值")
    private Double scoreValue;

    @Column(comment = "库存")
    @ApiModelProperty("库存")
    private Integer stock;


}
